﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="LevelApprover.aspx.cs"
    Inherits="ASB.CC.Web.SystemManagement.LevelApprover" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
    <link href="../../../css/global.css" rel="stylesheet" type="text/css" />
    <link href="../../../css/content/entity.css" rel="stylesheet" type="text/css" />
    <link href="../../../css/content/themes/base/jquery-ui.css" rel="stylesheet" type="text/css" />
    <link href="../../../css/main.css" rel="stylesheet" type="text/css" />

    <script src="../../../js/jquery-1.4.4.min.js" type="text/javascript"></script>

    <script type="text/javascript" src="../../../js/checkform.js"></script>

    <script src="../../../js/jquery-ui.min.js" type="text/javascript"></script>

    <script src="../../../js/entity.js.aspx" type="text/javascript"></script>

    <script type="text/javascript">
        $(function() {
            $("#btnSave").click(function() {
                var lv2 = $("#tbLv2Amount").val();
                var lv3 = $("#tbLv3Amount").val();
                var lv4 = $("#tbLv4Amount").val();

                if (parseInt(lv2) <= parseInt(lv3)) {
                    alert("Lv2Approval amount must be greater than Lv3Approval amount.\n2级的审批金额必须大于3级的审批金额! ");
                    event.returnValue = false;
                }
                else if (parseInt(lv3) <= parseInt(lv4)) {
                    alert("Lv3Approval amount must be greater than Lv4Approval amount.\n3级的审批金额必须大于4级的审批金额! ");
                    event.returnValue = false;
                }
            });

            $("#tbLv2Amount").change(function() {
                var lv2 = $("#tbLv2Amount").val();
                $("#tbLv1Amount").val(lv2);
            });
        });
    </script>

</head>
<body>
    <form id="form1" runat="server">
    <div class="mainbox">
        <div class="sitemapbox">
            <div id="info" class="sitemap">
                &nbsp;»&nbsp;System Manegement &nbsp;»&nbsp;LvApprover Management
            </div>
        </div>
        <table cellspacing="0" cellpadding="0">
            <tr>
                <td>
                    <!--tab区域-->
                    <div class="tabbox purplebg_dark">
                        <ul class="tabpos">
                            <li><span class="tab_active">
                                <%=Resources.PageTitles.LvApproverManagement%></span></li>
                        </ul>
                    </div>
                    <div class="formbox">
                        <table>
                            <tr class="formbox5">
                                <td>
                                    The amount of Lv1 Approver (1级审批金额):
                                </td>
                                <td>
                                    &nbsp;&nbsp;<asp:TextBox ID="tbLv1Amount" runat="server" ReadOnly="true" Width="50"></asp:TextBox>
                                    元以上授权
                                </td>
                            </tr>
                            <tr class="formbox5">
                                <td>
                                    The amount of Lv2 Approver (2级审批金额):
                                </td>
                                <td>
                                    &nbsp;&nbsp;<asp:TextBox ID="tbLv2Amount" runat="server" MaxLength="10" Width="50"
                                        tip="Lv2 Approval Amount could not be empty." usage="int+"></asp:TextBox>
                                    元以下授权
                                </td>
                            </tr>
                            <tr class="formbox5">
                                <td>
                                    The amount of Lv3 Approver (3级审批金额):
                                </td>
                                <td>
                                    &nbsp;&nbsp;<asp:TextBox ID="tbLv3Amount" runat="server" MaxLength="10" Width="50"
                                        tip="Lv3 Approval Amount could not be empty." usage="int+"></asp:TextBox>
                                    元以下授权
                                </td>
                            </tr>
                            <tr class="formbox5">
                                <td>
                                   The amount of Lv4 Approver (4级审批金额):
                                </td>
                                <td>
                                    &nbsp;&nbsp;<asp:TextBox ID="tbLv4Amount" runat="server" MaxLength="10" Width="50"
                                        tip="Lv4 Approval Amount could not be empty." usage="int+"></asp:TextBox>
                                    元以下授权
                                </td>
                            </tr>
                        </table>
                        <br />
                        <asp:Button ID="btnSave" runat="server" Text="Save" ToolTip="SaveTips" CssClass="btn" />
                    </div>
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
